package com.zhanggm.springcloud.jpa.entity;

import lombok.Data;

import java.io.Serializable;

import javax.persistence.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author zhanggm
 * null
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table(name = "tb_doctor")
@DynamicInsert
@DynamicUpdate
public class TbDoctor implements Serializable {

	/**
	 * null
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Integer id;

	/**
	 * null
	 */
	@Column(name = "name")
	private String name;

	/**
	 * 枚举
	 */
	@Column(name = "gender")
	private Integer gender;

	/**
	 * null
	 */
	@Column(name = "depart_id")
	private Integer departId;

	/**
	 * null
	 */
	@Column(name = "birthday")
	private java.sql.Date birthday;

	/**
	 * null
	 */
	@Column(name = "head_image")
	private String headImage;

	/**
	 * null
	 */
	@Column(name = "sheng_id")
	private Integer shengId;

	/**
	 * null
	 */
	@Column(name = "shi_id")
	private Integer shiId;

	/**
	 * null
	 */
	@Column(name = "xian_id")
	private Integer xianId;
}
